.recorder-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

  .recorder-header {
    text-align: center;
    margin-bottom: 1.5rem;

    h2 {
      color: #2c3e50;
      margin-bottom: 0.5rem;
    }
  }

  .recorder-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .recorder-controls {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
  }

  .control-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    svg {
      fill: currentColor;
    }

    &:disabled {
      background-color: #bdc3c7;
      cursor: not-allowed;
      transform: none;
    }
  }

  .start-btn {
    background-color: #4CAF50;
    color: white;

    &:hover {
      background-color: #388E3C;
      transform: translateY(-2px);
    }
  }

  .stop-btn {
    background-color: #F44336;
    color: white;

    &:hover {
      background-color: #D32F2F;
      transform: translateY(-2px);
    }
  }

  .play-btn {
    background-color: #2196F3;
    color: white;

    &:hover {
      background-color: #1976D2;
    }
  }

  .pause-btn {
    background-color: #FF9800;
    color: white;
  }

  .download-btn {
    background-color: #9C27B0;
    color: white;

    &:hover {
      background-color: #7B1FA2;
    }
  }

  .delete-btn {
    background-color: #607D8B;
    color: white;

    &:hover {
      background-color: #455A64;
    }
  }

  .recording-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding: 0.8rem;
    background-color: #f8f9fa;
    border-radius: 12px;

    .pulsating-dot {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background-color: #F44336;
      box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
      animation: pulse 1.5s infinite;
    }

    .recording-text {
      font-weight: 600;
      color: #F44336;
    }

    .recording-time {
      background-color: #e0e0e0;
      padding: 0.2rem 0.7rem;
      border-radius: 20px;
      font-weight: bold;
      color: #616161;
    }
  }

  .recorder-playback {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;

    .audio-player {
      margin-bottom: 1.5rem;

      .audio-element {
        width: 100%;
      }
    }

    .playback-controls {
      display: flex;
      justify-content: center;
      gap: 0.8rem;
      margin-top: 1.5rem;
      flex-wrap: wrap;
    }
  }

  .recording-info {
    text-align: center;
    margin-top: 1rem;
    color: #7f8c8d;
    font-size: 0.9rem;
  }

  .permission-denied {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    padding: 1rem;
    background-color: #ffebee;
    border-radius: 8px;
    color: #c62828;
    font-weight: 500;

    svg {
      fill: #c62828;
    }
  }

  .recorder-tips {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f9fbe7;
    border-radius: 8px;
    font-size: 0.9rem;

    strong {
      color: #7d8c2f;
    }

    ul {
      padding-left: 1.5rem;
      margin-top: 0.5rem;
      color: #7f8c8d;
    }
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
  }
}

@media (max-width: 480px) {
  .recorder-container {
    padding: 1.5rem;
    margin: 1rem;

    .control-btn {
      padding: 0.7rem 1.2rem;
      font-size: 0.9rem;
    }

    .playback-controls {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
    }
  }
}